﻿namespace Miao.ML
{
	public class EnumData : WinMLData, IQualifiedName
	{
		public string value { get; set; }

		public string qualifiedName { get; set; }

		public sealed override DataType type => DataType.Enum;

		public EnumData()
		{
		}

		public EnumData(string value)
		{
			this.value = value;
		}

		public EnumData(string qualifiedName, string value)
		{
			this.qualifiedName = qualifiedName;
			this.value = value;
		}

		public override string ToString()
		{
			return $"{qualifiedName}{'&'}{value}";
		}
	}
}
